﻿@using Resource
@using WebReport

<script type="text/javascript" href="?v=@DateTime.Now.Ticks">
        @*/*
         * 加密
         * @param encryptString 要加密的字符串
         * @param key 秘钥
         * @returns {string} 加密后的字符串
         */*@
        function aesEncrypt(encryptString, key) {
            var key = CryptoJS.enc.Utf8.parse(key);
            var srcs = CryptoJS.enc.Utf8.parse(encryptString);
            var encrypted = CryptoJS.AES.encrypt(srcs, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });
            return encrypted.toString();
        }

        @*/**
         * 解密
         * @param decryptString 要解密的字符串
         * @param key 秘钥
         * @returns {string} 解密后的字符串
         */*@
        function aesDecrypt(decryptString, key) {
            var key = CryptoJS.enc.Utf8.parse(key);
            var decrypt = CryptoJS.AES.decrypt(decryptString, key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });
            return CryptoJS.enc.Utf8.stringify(decrypt).toString();
        }
        var key = "d033e22ae348aeb5660fc2140aec35850c4da997"; // 至少四位数字
        var pazzword = "杰克马的财富密码";
        // aes Encrypt
        pazzword = aesEncrypt(pazzword, key);
        //console.log('加密后：' + pazzword);
        //aes Decrypt
        //console.log("解密后：" + aesDecrypt(pazzword, key));
</script>

<script type="text/javascript" href="?v=@DateTime.Now.Ticks">
    $(document).ready(function () {
        $('body').css('height', '100vh');
    });
    document.getElementById('list').innerHTML = [
        ["/Home/Report?type=YieldFailureMode", "@Html.Raw(Label.Board_YieldByFailureMode)"],
        ["/Home/Report?type=FailureModeBoxplot", "@Html.Raw(Label.Board_FailureModeTrend)"],
        ["/Home/Report?type=OutputPlanReport", "@Html.Raw(Label.Board_OutputPlanReport)"],
        ["/Home/Report?type=Tsya","@Html.Raw(Label.Board_TestYieldGap)"],
        ["/Home/Report?type=LduYield","@Html.Raw(Label.Board_LduYield)"],
        ["/Home/Report?type=Yieldboard","@Html.Raw(Label.Board_TestProcessYield)"],
        ["/Home/Report?type=FYOEE","FY OEE"],
        ["/Home/Report?type=MachineSum", "@Html.Raw(Label.Board_DeviceCapacity)"],
        ["/Home/Report?type=DeviceStatus", "@Html.Raw(Label.Board_EMSEquipmentStatus)"],
        ["/Home/Report?type=WIPReport",  "@Html.Raw(Label.Board_WIPReport)"],
        ["/Home/Report?type=TestProd", "@Html.Raw(Label.Board_TestProcessCapacity)"],
        ["/Home/Report?type=DeviceByTestYield", "@Html.Raw(Label.Board_EquipmentTestYield)"],
        ["/Home/Report?type=DeviceAssemblyYield","@Html.Raw(Label.Board_DeviceAssemblyYield)"],
        ["/Home/Report?type=ReportYield", "@Html.Raw(Label.Board_TestItemAnalysis)"],
        ["/Home/Report?type=HpuByYieldReport", "@Html.Raw(Label.Board_HPUYieldReport)"],
        //["/Home/Report?type=HpuReport", "HPU @Html.Raw(Label.Report)"],
        ["/Home/Report?type=ToPnParmTrend","@Html.Raw(Label.Board_IncomingParam)"],
        ["/Home/Report?type=TestsTrend", "@Html.Raw(Label.Board_TestTrendAnalysis)"],
        //["/Home/Report?type=UtilizationRate", "@Html.Raw(Label.Board_EquipmentUtilization)"],
        ["/Home/Report?type=OEEReport", "@Html.Raw(Label.Board_OEE_Report)"],
        ["/Home/Report?type=TesterProd", "@Html.Raw(Label.Board_Equipment_Output_Report)"],
        ["/Home/Report?type=AssemblyProd", "@Html.Raw(Label.Board_AssemblyCapacity)"],
        ["/Home/Report?type=YieldTriggerReport", "@Html.Raw(Label.Board_YieldTargetReport)"], 
        ["/Home/Report?type=AssemblyYield",  "@Html.Raw(Label.Board_AssemblyYieldReport)"], 
        ["/Home/Report?type=AssemblyDefect","@Html.Raw(Label.Board_AssemblyDefectReport)"],
        ["/Home/Report?type=FAInOutWipTrend","@Html.Raw(Label.Board_AssemblyDefectReport)"]
        //["/Home/Report?type=JobNumReachRate", "@Html.Raw(Label.JobNum + Label.Reach + Label.Rate)"]
        //["/Home/Report?type=DayOuput", "@Html.Raw(Label.OTD + Label.Capacity + Label.Board)"],
        //["/Home/Report?type=ReportOee", "OEE报表"],
        //["/Home/Report?type=AssemblyYield", "组装工序良率"],
        //["/Home/Report?type=ReportOee", "组装工序产能"],
        //["/Home/Report?type=ReportOee", "OEE报表"],
        //["/Home/Report?type=96044ed5818a4f13f5a9", "当月产能看板"]
        //["/Home/Report?type=fc1c3adc718a25f9e8db", "当天机台产能统计"],
        //["/Home/Report?type=Equipment", "设备状态看板"],
        //["/Home/Report?type=Yield", "产品测试站良率"],
        //["/Home/Report?type=DayOuput", "当天产能看板"],
        //["/Home/Report?type=f938bdbbb18aab6b93d4", "当月产能看板2"]
        ////https://localhost:44390/Report/Equipment
        //["/Home/Report?type=08ec8a99e1894e2a0f1d", "瓶颈工序看板"],
        //["/Home/Report?type=44d4c59a61892aafaa95", "LENS_AA_SIOB"],
        //["/Home/Report?type=1cf560b561892530b5e4", "EMS报告样板"]
        //["/Home/Report?type=5024432bf189487c9039", "800G SIOB TO PIC"],
        //["/Home/Report?type=cb2d416b71891ea5f9f3", "产线报工看板"],
        //["/Home/Report?type=b0f4538b118952647c4b", "关联交互查询"],
        //["/Home/Report?type=f7fdc12301891ea62ed0", "看板demo"]
    ].map(function (item) {
        return '<li><a href="' + item[0] + '" target="preview">' + item[1] + '</a></li>';
    }).join('');
    document.body.style.height = window.innerHeight + 'px';
</script>